{extend name="layout:layout" /}

{block name="title"}操作日志管理{/block}

{block name="stylesheet"}
<link rel="stylesheet" href="__STATIC__/icheck/minimal/red.css">
{/block}

{block name="body"}
<div style="padding: 15px;">
    <fieldset class="layui-elem-field">
        <legend>系统管理 - 操作日志列表</legend>
        <div class="layui-field-box">
            <form class="layui-form" action="">
                <div class="layui-form-item" style="text-align:center;">
                    <div class="layui-inline">
                        <div class="layui-input-inline">
                            <input autocomplete="off" class="layui-input" placeholder="请输入管理员名称" type="text" name="username"
                                   value="{$select.username}">
                        </div>
                        <div class="layui-input-inline">
                            <input autocomplete="off" class="layui-input" placeholder="请输入操作页面" type="text" name="name"
                                   value="{$select.name}">
                        </div>
                    </div>
                    <div class="layui-inline" style="text-align:left;">
                        <div class="layui-input-inline">
                            <button class="layui-btn"><i class="layui-icon">&#xe615;</i>查询</button>
                        </div>
                    </div>
                </div>
            </form>
            <hr>
            <div class="layui-btn-group">
                <button class="layui-btn layui-btn-xs layui-btn-danger dw-batch-delete" dw-url="{:url('AdminLog/delete')}">
                    <i class="layui-icon">&#xe640;</i>删除
                </button>
                <button class="layui-btn layui-btn-xs dw-refresh">
                    <i class="layui-icon">&#x1002;</i>刷新
                </button>
            </div>
            <hr>
            <table class="layui-table">
                <colgroup>
                    <col>
                    <col>
                    <col>
                    <col>
                    <col width="100px;">
                </colgroup>
                <thead>
                <tr>
                    <th class="selectAll"><input type="checkbox"> 全选</th>
                    <th>管理员</th>
                    <th>操作页面</th>
                    <th>操作时间</th>
                    <th style="text-align:center;">操作</th>
                </tr>
                </thead>
                <tbody>
                {volist name="list" id="vo"}
                <tr>
                    <td>
                        <input type="checkbox" name="id" value="{$vo.id}"> {$vo.id}
                    </td>
                    <td>{$vo.admin_id}</td>
                    <td>{$vo.name}</td>
                    <td>{$vo.log_time}</td>
                    <td class="text-center">
                        <div class="layui-btn-group">
                            <button class="layui-btn layui-btn-xs layui-btn-danger dw-delete"
                                    dw-url="delete.html?id={$vo.id}"
                                    dw-title="{$vo.name}">
                                <i class="layui-icon">&#xe640;</i>删除
                            </button>
                        </div>
                    </td>
                </tr>
                {/volist}
                </tbody>
            </table>
            <div class="dw-page">{$list->render()}

            </div>
        </div>
    </fieldset>
</div>
{/block}
{block name="javascript"}
<script type="text/javascript" src="__STATIC__/icheck/icheck.js"></script>
<script type="text/javascript" src="__STATIC__/backend/javascript/dw.js"></script>
{/block}